﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MobileControlGuru.Src
{
    public static class DynamicStringHelper
    {
        /// <summary>
        /// 动态类型转字符串，自动判空
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        public static string DynamicToString(dynamic data)
        {
            return data == null ? "" : (string)data.ToString();
        }
    }
}
